package com.lizhenhua.fmmall.service;

import com.lizhenhua.fmmall.vo.ResultVo;
import org.apache.ibatis.annotations.Param;

public interface ProductService {
    public ResultVo selectProductAndImg();

    public ResultVo getProductBasicInfo(String productId);

    public ResultVo getProductById(String productId);

    /**
     * @param categoryId product表的catagory_id
     * @param pageNum    分页 页码
     * @param limit      几条数据
     * @return
     */
    ResultVo getProductByCategoryId(int categoryId, int pageNum, int limit);

    ResultVo brandList( int categoryId);

    // 根据关键字查询商品信息
    ResultVo searchProduct(String keyword, int pageNum, int limit);

    // 根据关键字查询品牌信息
    ResultVo searchBrand(String keyword);

}
